<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>零件追溯评价管理系统</title>
	<script src="<%=basePath %>resources/jslib/jquery.js" type="text/javascript"></script>
	<link href="<%=basePath %>resources/css/style.css" rel="stylesheet" type="text/css" />
	
	<style type="text/css">
	.tooltip{
	position:absolute;right:-10px;top:17px;background:#fff;border:1px solid #1873AA;padding:4px;color:#333

	}
	</style>
	<SCRIPT language=javascript>
	
	function SetCookie(name,value){
	     var argv=SetCookie.arguments;
	     var argc=SetCookie.arguments.length;
	     var expires=(2<argc)?argv[2]:null;
		 document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()));
	}
	
	function GetCookie(Name) {
	     var getname = Name + "=";
	     var returnvalue = "";
	     if (document.cookie.length > 0) {
	           offset = document.cookie.indexOf(getname);
	           if (offset != -1) {      
	                 offset += getname.length;
	                 end = document.cookie.indexOf(";", offset);                        
	                 if (end == -1)
	                       end = document.cookie.length;
	                 returnvalue=unescape(document.cookie.substring(offset,end));
	           }
	     }
	     return returnvalue;
	}
	function myinit(basePath) {
		show();
		var thisskin;
		thisskin=GetCookie("save_skin");
		if(thisskin!=""){
			if(thisskin.indexOf("ttp")>0){
				document.getElementById("page_skin").href=thisskin;
				frmright.document.getElementById("child_skin").href=thisskin;
			} else{
				document.getElementById("page_skin").href=basePath+thisskin;
				frmright.document.getElementById("child_skin").href=basePath+thisskin;
			}
		}
		else{
			document.getElementById("page_skin").href=basePath+"resources/css/style.css";
 	    	frmright.document.getElementById("child_skin").href=basePath+"resources/css/style.css";
		}
	}
	
	function changeskin(url){
	     if(url!=""){
	           document.getElementById("page_skin").href=url;
	           frmright.document.getElementById("child_skin").href =url;
	           var nowdate=new Date();
	           nowdate.setTime(nowdate.getTime()+(24*60*60*1000*30));
	
	           SetCookie("save_skin",url,nowdate);
	     }
	     $("#skin").css("display","none");
	}
	function show(){
		var curTime=new Date();
		var offTime= curTime.getTime() -0;
		curTime.setTime(offTime);
		document.getElementById("time").innerHTML = curTime.toLocaleString() + '&nbsp;&nbsp;'+ '星期' + '日一二三四五六'.charAt(curTime.getDay());
		setTimeout("show()",1000);
	}
	</SCRIPT>
	<LINK id="page_skin" type=text/css rel="stylesheet">
	<script type="text/javascript">
	
	
		function showsubmenu(a) {
			var menu = a.attr("id");
			var submenu = "sub" + menu;
			$("#"+ submenu).toggle();
			a.parent().toggleClass("select");
		};
		
		function switchSysBar() {
			$("#left_d").toggle();
			var la = $("#la_z").attr("id");
			if(la =="la_z" ){
				$("#la_z").attr("id","la_la");
			} else{
				$("#la_la").attr("id","la_z");
				
			}
			
		};

		function showSkin(a){
			divNode = $("#skin_div");
			var offset = divNode.offset();
			$("#skin").css("position", "absolute").css("left", offset.left +"px")
			.css("top", offset.top + divNode.height() + "px").css("z-index","999").toggle();
		}
	
	</script>
	
	<script type="text/javascript" language="javascript">    
	 if (window.top!=window.self){ 
	    window.top.location='<%=basePath %>main/index'; 
	 } 
	</script>
	
  </head>
  
  <body onload="myinit('<%=basePath %>')">
    <div class="main">
    <div class="logo_k">
		<div class="logo" onclick="window.location.href='<%=basePath %>Login_main.action'" ></div>		
			<ul class="logo_list">
				<li class="icon_skin" style="margin-left: 20px; display: block; float: none; margin-bottom: 7px;">换肤:&nbsp;
					<span id="skinicon1" onclick="changeskin('<%=basePath %>resources/css/style.css')"><img alt="" src="<%=basePath %>resources/images/blue.gif"></span>
					<span id="skinicon2" onclick="changeskin('<%=basePath %>resources/css/style_red.css')" ><img alt="" src="<%=basePath %>resources/images/red.gif"></span>
				</li>
				<li class="logo_data">
					<span id="time"></span>
				</li>
				
				
				<li class="icon_user">欢迎您<b>${sessionScope.__LOGIN_KEY__.userName}</b>
				       <span class="tooltip" id="postduty" style="display: none">${sessionScope.__LOGIN_KEY__.roleName}</span>
				    </li>        		
				
				<li class="separator">|</li>
				<li class="icon_help"><a>帮助</a></li>
				<li class="separator">|</li>
				<li class="icon_loginout"><a href="<%=basePath%>/index/loginOut">退出</a></li>
			</ul>
		</div>
	<div class="content_k">
		<table  cellspacing="0" cellpadding="0" border="0" width="100%" style="table-layout: fixed;">
			<tr>
				<td align="left" width="154px" valign="top" id="left_d">
					<div class="left_gou" >	
						<ul>
							
							<li class="select"><a id="menu1" onclick="showsubmenu($(this))">用户管理</a>
								<div class="fany_con" id="submenu1">
									<ul>
										<li><a href="<%=basePath%>user/userToAdd.action" target="frmright">用户添加</a></li>
										<li><a href="<%=basePath%>user/userlist.action" target="frmright">用户列表</a></li>										
									     
									</ul>
								</div>	
							</li>
							
							
							<li class="select"><a id="menu1" onclick="showsubmenu($(this))">质量反馈管理</a>
								<div class="fany_con" id="submenu1">
									<ul>
										<li><a href="<%=basePath%>user/feedbackToAdd.action" target="frmright">质量反馈添加</a></li>
										<li><a href="<%=basePath%>user/feedBacklist.action" target="frmright">质量反馈列表</a></li>										
									     
									</ul>
								</div>	
							</li>
							
							<li class="select"><a id="menu1" onclick="showsubmenu($(this))">零件信息管理</a>
								<div class="fany_con" id="submenu1">
									<ul>
									<li><a href="<%=basePath%>lingJian/gongXuToAdd.action?add=0" target="frmright">添加工序</a></li>
										<li><a href="<%=basePath%>lingJian/gongXuList.action" target="frmright">工序列表</a></li>
									<li><a href="<%=basePath%>lingJian/lingJianToAdd.action?add=0" target="frmright">添加零件</a></li>
										<li><a href="<%=basePath%>lingJian/lingJianList.action" target="frmright">零件列表</a></li>
										<li><a href="<%=basePath%>lingJian/sizeImport.action" target="frmright">尺寸数据录入</a></li>	
										<li><a href="<%=basePath%>lingJian/fillImport.action" target="frmright">精度数据录入</a></li>											
									</ul>
								</div>	
							</li>
							
							
                            <li class="select"><a id="menu2" onclick="showsubmenu($(this))">质量反馈管理</a>
								<div class="fany_con" id="submenu2">
									<ul>
									    <li><a href="<%=basePath%>lingJian/zhiLiangToAdd.action" target="frmright">零件质量点录入</a></li>
									    <li><a href="<%=basePath%>lingJian/zhiLiangKeyList.action" target="frmright">零件质量点数据列表</a></li>
										<li><a href="<%=basePath%>lingJian/sizeDataList.action" target="frmright">尺寸数据列表</a></li>
										<li><a href="<%=basePath%>lingJian/fillDataList.action" target="frmright">精度数据列表</a></li>
										
									</ul>
								</div>	
							</li>
							<li class="select"><a id="menu3" onclick="showsubmenu($(this))">系统管理</a>
								<div class="fany_con" id="submenu3">
									<ul>
										
										<li><a href="<%=basePath%>system/factoryToAdd.action" target="frmright">添加加工设备</a></li>
										<li><a href="<%=basePath%>system/factoryList.action" target="frmright">加工设备列表</a></li>
										<!-- 
										<li><a href="<%=basePath%>system/toolsToAdd.action" target="frmright">添加夹具</a></li>
										<li><a href="<%=basePath%>system/toolsList.action" target="frmright">夹具列表</a></li>
										<li><a href="<%=basePath%>system/operaterToAdd.action" target="frmright">添加施工员</a></li>
										<li><a href="<%=basePath%>system/operaterList.action" target="frmright">施工员列表</a></li>
										<li><a href="<%=basePath%>system/sellShipToAdd.action" target="frmright">添加销售商</a></li>
										<li><a href="<%=basePath%>system/sellShipList.action" target="frmright">销售商列表</a></li>-->
										<li><a href="<%=basePath%>system/sellerToAdd.action" target="frmright">添加销售商</a></li>
										<li><a href="<%=basePath%>system/sellerList.action" target="frmright">销售员列商</a></li>
										<li><a href="<%=basePath%>system/buyShipToAdd.action" target="frmright">添加供应商</a></li>
										<li><a href="<%=basePath%>system/buyShipList.action" target="frmright">供应商列表</a></li>
										<!-- <li><a href="<%=basePath%>system/buyerToAdd.action" target="frmright">添加采购员</a></li>
										<li><a href="<%=basePath%>system/buyerList.action" target="frmright">采购员列表</a></li>-->
									</ul>
								</div>	
							</li>
												
						</ul>			
					</div>
				</td>
				<td width="6" valign="middle" onclick="switchSysBar()" style="width: 4px;"><div id="la_la"></div></td>
				<td align="right" width="100%" valign="top" bgcolor="#ffffff">
					<div style="height: 592px" id="frmright"> 
					     <iframe scrolling="no" name="frmright" height="100%" width="100%" border="0" frameborder="0" src=""> 浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。</iframe>
					</div>                                                                                          
				</td>
			</tr>
		</table>
		<div class="clear"></div>
<!--尾部区域start-->
<div id="fbox">
	<div id="bs_footcenter">
	<div id="bs_footleft">
	<div id="bs_footright">
		版权所有：<span class="underLine"><a target="_blank" href="">alone</a></span>
	</div>
	</div>
	</div>
</div>
</div>
<!--尾部区域end-->
		<input type="hidden" id="from">
		
		
	</div>
</div>
  </body>
</html>
